<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
    <style>

    </style>
</head>

<body>
    <div id="app">
        <!-- <h3>生命周期</h3> -->
        {{ list }}
    </div>

    <!-- <script src="./js/vue.js"></script> -->
    <script src="https://cdn.jsdelivr.net/npm/vue@2.6.14/dist/vue.js"></script>
    <script>
        const app = new Vue({
            // el: "#app",
            // 创建之前
            beforeCreate() {
                console.log('第一阶段beforeCreate')
            },
            
            created() {
                console.log('第二阶段created')
                // debugger
                // 请求接口
                // 1. 获取数据
                // 2. 逻辑操作(修改，添加)
            },
            // template: "<div>tem</div>",
            data: {
                count: 200,
                list: []
            },
            methods: {
                fn() {

                }
            },
            computed: {
                newCount() {
                    return 11
                }
            }
        })

        app.$mount('#app')

    </script>
</body>

</html>